home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2002 November / SGI IRIX Installation Tools & Overlays 2002 November - Disc 4.iso / dist / motif21_dev.idb / usr / Motif-2.1 / include / Xm / FormP.h.z / FormP.h
C/C++ Source or Header  |  2002-10-15  |  3KB  |  141 lines

  1. /* 
  2.  *  @OSF_COPYRIGHT@
  3.  *  COPYRIGHT NOTICE
  4.  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  5.  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  6.  *  the full copyright text.
  7. */ 
  8. /* 
  9.  * HISTORY
  10. */ 
  11. /*   $TOG: FormP.h /main/13 1998/03/25 12:25:28 csn $ */
  12. /*
  13. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  14. /*
  15. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  16. #ifndef _XmFormP_h
  17. #define _XmFormP_h
  18.  
  19.  
  20. #include <Xm/Form.h>
  21. #include <Xm/BulletinBP.h>
  22.  
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26.  
  27. /* 2.1.20 change */
  28.  
  29. /* define index constants which are used to access attribute array of Form 
  30.  * so that subclass of Form can make use of them.
  31.  */
  32.  
  33. #define _XmFORM_LEFT    0
  34. #define _XmFORM_RIGHT   1
  35. #define _XmFORM_TOP     2
  36. #define _XmFORM_BOTTOM  3
  37.  
  38. typedef struct _XmFormAttachmentRec 
  39. {
  40.    unsigned char type;
  41.    Widget w;
  42.    int percent;
  43.    int offset;
  44.    int value;
  45.    int tempValue;
  46. } XmFormAttachmentRec, * XmFormAttachment;
  47.  
  48.  
  49. #ifdef att
  50. #undef att
  51. #endif
  52.  
  53. typedef struct _XmFormConstraintPart
  54. {
  55.    XmFormAttachmentRec att[4];
  56.    Widget next_sibling;
  57.    Boolean sorted;
  58.    Boolean resizable;
  59.    Dimension preferred_width, preferred_height;
  60.  
  61. #ifdef _SGIMOTIF
  62.   XtPointer    _SG_vendorExtension;
  63. #endif
  64. } XmFormConstraintPart, * XmFormConstraint;
  65.  
  66. typedef struct _XmFormConstraintRec
  67. {
  68.    XmManagerConstraintPart manager;
  69.    XmFormConstraintPart    form;
  70. } XmFormConstraintRec, * XmFormConstraintPtr;
  71.  
  72.  
  73. /*  Form class structure  */
  74.  
  75. typedef struct _XmFormClassPart
  76. {
  77.    XtPointer extension;   /* Pointer to extension record */
  78.  
  79. #ifdef _SGIMOTIF
  80.   XtPointer    _SG_vendorExtension;
  81. #endif
  82. } XmFormClassPart;
  83.  
  84.  
  85. /*  Full class record declaration for form class  */
  86.  
  87. typedef struct _XmFormClassRec
  88. {
  89.    CoreClassPart       core_class;
  90.    CompositeClassPart  composite_class;
  91.    ConstraintClassPart constraint_class;
  92.    XmManagerClassPart  manager_class;
  93.    XmBulletinBoardClassPart  bulletin_board_class;
  94.    XmFormClassPart     form_class;
  95. } XmFormClassRec;
  96.  
  97. externalref XmFormClassRec xmFormClassRec;
  98.  
  99.  
  100. /*  The Form instance record  */
  101.  
  102. typedef struct _XmFormPart
  103. {
  104.    Dimension horizontal_spacing;
  105.    Dimension vertical_spacing;
  106.    int fraction_base;
  107.    Boolean rubber_positioning;
  108.    Widget first_child;
  109.    Boolean initial_width, initial_height;
  110.    Boolean processing_constraints;
  111.  
  112. #ifdef _SGIMOTIF
  113.   XtPointer    _SG_vendorExtension;
  114. #endif
  115. } XmFormPart;
  116.  
  117.  
  118. /*  Full instance record declaration  */
  119.  
  120. typedef struct _XmFormRec
  121. {
  122.    CorePart      core;
  123.    CompositePart  composite;
  124.    ConstraintPart constraint;
  125.    XmManagerPart  manager;
  126.    XmBulletinBoardPart  bulletin_board;
  127.    XmFormPart     form;
  128. } XmFormRec;
  129.  
  130. /********    Private Function Declarations    ********/
  131.  
  132.  
  133. /********    End Private Function Declarations    ********/
  134.  
  135. #ifdef __cplusplus
  136. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  137. #endif
  138.  
  139. #endif /* _XmFormP_h */
  140. /* DON'T ADD ANYTHING AFTER THIS #endif */
  141.